package com.lanmaoly.web.server.dao;

import com.github.pagehelper.Page;
import com.lanmaoly.web.server.pojo.TbOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TbOrderMapper {


    int deleteByPrimaryKey(Long orderId);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);


    TbOrder selectByPrimaryKey(Long orderId);


    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);

    List<TbOrder> findAll();

    Page<TbOrder> findPage(TbOrder tbOrder);

    List<TbOrder> findByUserId(@Param("userId") String userId, @Param(value = "status") String status);
}